import request from '@/request/request.js'

// 添加反馈信息
export const postFeedback = (params) => {
	return request({
		url: "/weiriya/word",
		method: "post",
		data: params,
	})
}

// 获取订单列表
export const getOrderList = (params) => {
	return request({
		url: "/weiriya/order/list",
		method: "get",
		data: params,
	})
}

// 获取充电记录列表
export const getChargeList = (params) => {
	return request({
		url: "/weiriya/chargeRecord/list",
		method: "get",
		data: params,
	})
}

// 获取停车记录列表
export const getStopList = (params) => {
	return request({
		url: "/weiriya/depositRecord/list",
		method: "get",
		data: params,
	})
}

// 获取未读消息统计
export const getUnreadCount = (params) => {
	return request({
		url: "/weiriya/message/statistical",
		method: "get",
		data: params,
	})
}

// 获取信息列表
export const getMessageList = (params) => {
	return request({
		url: "/weiriya/message/list",
		method: "get",
		data: params,
	})
}

// 获取信息详情
export const getMessageDetail = (id) => {
	return request({
		url: `/weiriya/message/${id}`,
		method: "get",
	})
}